import { request } from '@/request/request'
// 获取歌曲的Url
export const getMusicUrl = (id) => request('/song/url', { id })

// 是否喜欢该音乐
export const isLikeMusic = (params) => request('/like', params)

// 获取喜欢id列表
export const getLikeMusicList = (params) => request('/likeList', params)

// 加入收藏歌单
export const pushCollectList = (params) =>
  request('/playlist/subscribe', params)

// 根据id获取歌曲详细信息
export const getMusicInfo = (ids) => request('/song/detail', { ids })
